import request from '@/utils/request'
//1. 查询所有学生
export function findAllStudents() {
  return request({
    url: '/student/list',
    method: 'get'
  })
}

//2. 条件查询带分页
export function search(page,pageSize,data) {
  return request({
    url: `student/search/${page}/${pageSize}`,
    method: 'post',
    data
  })
}

//3. 保存学生
export function save(url,method,data) {
  return request({
    url,
    method,
    data
  })
}

//4. 删除学生
export function delStudent(ids) {
  return request({
    url:`/student/delete/${ids}`,
    method: 'get',
  })
}
